<body leftmargin="0" rightmargin="0" topmargin="0">
<div style=" background: url(images/title-bg.jpg); height:64px; text-align:right;">
<img src="images/head.jpg">
</div>

<?
$session_role="guard";
?>
<? if ($session_role!="guard") { ?>

<!--left menu start-->
<div style="float: left; width:180px; height:100%; margin-right:20px;">
<?
include "menu.inc.php";
?>
</div>
<!--left menu end-->
<? } ?>

<!--Main start here-->
<br>
<table border="0" cellpadding="2" cellspacing="0" width="750" class="tableMainBodyFont" align="<? echo ($session_role=="guard")?"center":"";?>">
  <tbody>
    
    <tr>
      <td width="3%" align="center" bgcolor="#aaaaaa" style=" border-top-style:solid;border-top-width:1px;"><strong>Pengesahan Kad Matrik -- Masuk </strong></td>
    </tr>
  </tbody>
</table>
<form action="?act=in_confirm" method="post" onSubmit="return GoSubmit(this)">
<?
include "_form.php";
?>
</form>

      <table width="750" border="0" cellpadding="2" cellspacing="0" bgcolor="#DDDDDD" class="tableMainBodyFont" style=" padding-left:10px; padding-right:10px;" align="<? echo ($session_role=="guard")?"center":"";?>">
        <tbody>
          
          
          <tr>
            <td align="center" valign="top">&nbsp;</td>
            <td align="left">&nbsp;</td>
            <td align="left">&nbsp;</td>
          </tr>
          <tr>
            <td align="center" valign="top" width="3%"><img src="images/<? echo (file_exists($student['nomatrik']."jpg") )?$student['nomatrik']."jpg":"ultraman2.jpg";?>" alt="student" width="210" height="267"></td>
            <td align="center" width="60%">
			
			<table width="90%" class="tableMainBodyFont" style=" font-size:12pt; font-weight:bold; font-family:'Times New Roman', Times, serif">
              <tr>
                <td align="center"><?=$student['name']?></td>
              </tr>
              <tr>
                <td align="center"><?=$student['ic_new']?></td>
              </tr>
              <tr>
                <td align="center"><?=$student['nomatrik']?></td>
              </tr>
              <tr>
                <td align="center">ASRAMA <?=$student['code']?></td>
              </tr>
              <tr>
                <td align="center"><?=$student['course_name']?></td>
              </tr>
            </table></td>
            <td width="150" align="right"><img src="images/<?=$tanda?>.jpg" alt="student" width="210" height="267"></td>
          </tr>
          <tr>
            <td align="center">&nbsp;</td>
            <td align="left" width="60%">&nbsp;</td>
            <td align="left">&nbsp;</td>
          </tr>
          
          <tr>
            <td colspan="3" align="center">&nbsp;</td>
          </tr>
        </tbody>
      </table>
    </form>
<!--Main end here-->
</body>
<script>
document.forms[0].nomatrik.focus();

function GoSubmit(df) {
	
	//if (!checkInput(icnumRegExp,document.getElementById('ic_new'),'No Kad Pengenalan Baru')) return false;
	//if (!checkInput(anythingRegExp,$('name'),'Nama Staf')) return false;
	//if (!checkSelection(strRegExp,document.getElementById('gender'),'Jantina')) return false;
	return true;
}

//document.forms[0].onsubmit = GoSubmit;

</script>

<script>
msg = '<? echo ($m!='')?"1":"";?>';
if (msg!='') alert('Polisi Berjaya Dikemaskini'); 
</script>

